package com.mycompany.app.hr.eleave.batch.writer;

import java.util.List;

import org.springframework.batch.item.ClearFailedException;
import org.springframework.batch.item.FlushFailedException;
import org.springframework.batch.item.ItemWriter;

import com.mycompany.app.hr.eleave.model.LeaveRecord;

/**
 * daily daemon job as a replacement of "process leave record" in seagate T&A
 * 
 * * Main functionality: 
 * This is a daily background process. 
   It will generate leave payment for those leave record 
   which leave date is due according to predefined leave payment rules 
   or assigned pay factor. 
 * 1. Add AL, SL, SD(CS,LS) consumed fields; (refers to the leave_session)
 2. deduct applied fields for AL, SL
 3. calculate pay days

 * When to use: Run once each day.
 * 
 * @author Shawn.guo
 *
 */
public class DailyOverdueLeaveRecordWriter implements ItemWriter {

    public void clear() throws ClearFailedException {

        // TODO Auto-generated method stub
        
    }

    public void flush() throws FlushFailedException {

        // TODO Auto-generated method stub
        
    }

    public void write(Object item) throws Exception {

        // TODO Auto-generated method stub
        
    }


}
